﻿using Ue.Qcdz.Domain.Articles;
namespace Ue.Qcdz.UI.Controls
{
    /// <summary>
    /// 相关文章 控件（按关键字筛选，可指定TagId值 ,可指定具体的 节点）
    /// </summary>
    public class RelatedArticles : ArticleGridView
    {
        public RelatedArticles()
        {
            base.IsUse = true;
            this.NewsKey = Ue.Qcdz.Domain.SiteContext.GetSiteContext().EntityKey;
            SetKeyword();
        }

        public void SetKeyword()
        {
            Article model = ArticleService.GetArticle(NewsKey);
            if (model != null)
            {
                base.Keyword = model.Keyword;
            }
        }

        public object NewsKey { get; set; }
    }
}
